const db = require('../common/mongoose'),
  mongoose = db.mongoose,
  Schema = db.Schema;

let billSchema = new Schema({
  code:  {type: String},
  name:  {type: String},
  // 创建时间
  createTime: {type: Date, default: Date.now},
  // 修改时间
  updateTime: {type: Date, default: Date.now},
  // 删除时间
  deleteTime: {type: Date, },
  // 操作人
  operator: {type: String, },
  // 操作人id
  operatorId: {type: String, },
  // 备注
  remarks: {type: String, }
});

let BillModel = mongoose.model('Bill', billSchema, 'bill');

module.exports = BillModel;
